import { createApp } from "vue";
import App from "@/App.vue";

// 引入全局样式
import "@/styles/index.scss";

//引入路由
import router from './router'
const app = createApp(App);

// 引入仓库
import pinia from './store'

// 全局引入及注册组件
import gloablComponent from "@/components/index";
app.use(gloablComponent);

// 引入elment及样式
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// svg注册

import "virtual:svg-icons-register";
//注册模板路由
app.use(router)
// 安装仓库
app.use(pinia)
// 配置elementPlus国际化
// '//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败) 另起一行生效
//@ts-expect-error
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
app.use(ElementPlus, {
  locale: zhCn,
});

app.mount("#app");
